﻿<?xml version="1.0" encoding="utf-8" ?>
 <SoftwareReset selectionType ="Multiple" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Settings.xsd">    
     <SettingsGroup id="0">
      <DisplayInformation>
       <Name>Enable Windows Installer logging</Name>
       <Description>Windows includes a registry-activated logging service to help diagnose Windows Installer issues. This will enable it.</Description>
      </DisplayInformation>
      <Settings>
       <SetRegValue key="HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer" value="Logging" type="REG_SZ" data="voicewarmupx" />
    </Settings>
  </SettingsGroup>
   <SettingsGroup id="1">
     <DisplayInformation>
      <Name>Disable Windows Installer logging</Name>
      <Description>Windows includes a registry-activated logging service to help diagnose Windows Installer issues. This will disable it.</Description>
    </DisplayInformation>
     <Settings>
      <SetRegValue key="Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer" value="Logging" type="REG_SZ" data="" />
    </Settings>
  </SettingsGroup>
  <SettingsGroup id="2">
     <DisplayInformation>
      <Name>Stop Installer Service</Name>
      <Description>This will stop the installer service.</Description>
    </DisplayInformation>
    <Settings>
      <RunCommand commandline="sc.exe config msiserver start= auto" />
      <RunCommand commandline="net stop msiserver" />
      <RunCommand commandline="sc.exe config msiserver start= demand" />
    </Settings>
  </SettingsGroup>
  <SettingsGroup id="3">
   <DisplayInformation>
      <Name>Start Installer Service</Name>
      <Description>Windows includes a registry-activated logging service to help diagnose Windows Installer issues.</Description>
    </DisplayInformation>
    <Settings>
      <RunCommand commandline="sc.exe config msiserver start= auto" />
      <RunCommand commandline="net start msiserver" />
      <RunCommand commandline="sc.exe config msiserver start= demand" />
    </Settings>
  </SettingsGroup>
   <SettingsGroup id="4">
     <DisplayInformation>
      <Name>Copy MSI log Files</Name>
      <Description>Copy the MSI log files of the installer service to certain folder.</Description>
    </DisplayInformation>
    <Settings>
      <CopyFile source="%temp%\MSI*.log" destination="%temp%\Installer Log" overwrite="True" />
    </Settings>
  </SettingsGroup>
   <SettingsGroup id="5">
    <DisplayInformation>
      <Name>Delete MSI log Files</Name>
      <Description>Log files from Installer service will be delete.</Description>
    </DisplayInformation>
     <Settings>
      <DeleteFile path="%temp%\MSI*.log" />
    </Settings>
  </SettingsGroup>   
</SoftwareReset>

